function [pliM]=pliXtrial(data)


[nCh,nSample]=size(data.trial{1});
nTrials=length(data.trial)
syncM=zeros(nTrials,nCh,nCh);

for i=1:nTrials
      syncM(i,:,:)=pli(data.trial{i}');
end
pliM=squeeze(mean(syncM,1));